<div class="container">
    <!-- Start: Product description -->
    <airticle class="article">
        <div class="row bottom-space">
            <div class="span12">
                <div class="page-header">
                    <h1>Category: <small><?php echo $project->getCategory()->getCategoryname(); ?></small></h1>                    
                    <h1>Project: <small><?php echo $project->getTitle(); ?></small></h1>
                </div>
            </div>
            <div class="span12 center-align">
                <img height="300" width="800" src="<?php echo $this->basePath().'/project/pic/'; $img  = $project->getImages(); $path = $img[0]->getPath();  echo isset($path) ?  $path: 'noPhoto.jpg';?>" class="thumbnail product-snap">            
            </div>
        </div>
        <div class="row">
            <div class="span10 offset1">
                <p>
                      <?php echo $project->getDescription();?>
                </p>  
                
                <iframe width="660" height="450" src="<?php $films = $project->getFilms(); echo $films[0]->getLink(); ?>" frameborder="0" allowfullscreen></iframe>
               
                                             
            </div>  
                   
                     <?php foreach ($img as $im):?>
                     <div class="span6">
                         <a href="#"><img height="200" width="300" src="<?php echo $this->basePath().'/project/pic/'; $path = $im->getPath();  echo isset($path) ?  $path: 'noPhoto.jpg';?>" class="thumbnail bottom-space-less"></a>
                     </div> 
                    <?php endforeach;?>
            
                <div class="span8 offset1">
                    <h3>Uczestnicy:</h3>
                    <ul class="features">                       
                        <li>
                            <i class="icon-ok "></i>Kamil
                        </li>  
                        <li>
                            <i class="icon-ok "></i>Sergiej
                        </li>
                    </ul>
            </div>            
        </div>
        <div class="row">
            <div class="span10 offset1">
                <hr>
                <div class="span3">
                    <p>
                        Dołącz do projektu
                    </p>
                    <a class="btn btn-large btn-block" href="#">Dołacz</a>
                </div>
                <div class="span3">
                    <p>
                        Wyślij wiadomośc.
                    </p>
                    <a class="btn btn-large btn-block" href="<?php echo $this->url('application', array('controller' => 'home', 'action' => 'contactUs'));?>">Kontakt</a>
                </div>
                <div class="span3">
                    <p>
                        Wszystkie projekty użytkownika: <?php  $user = $project->getUsers(); echo $user->getFirstname();?>
                    </p>
                    <a class="btn btn-large btn-block" href="<?php echo $this->url('project/wildcard', array('controller' => 'index', 'action' => 'user-projects', 'id' => $project->getId()));?>">Projekty</a>
                </div>              
            </div>
        </div>
    </airticle>
    <!-- End: Product description -->
</div>